<?php
$user = $this->view->status->user;
$popularStatuses = Status::getPopularStatuses(0, 2, '', 'rand()');
$everyoneStatuses = Status::getEveryoneStatuses(0, 2);
$debutsStatuses = Status::getDebutsStatuses(0, 2);
$userStatuses = Status::getUserStatuses(0, 4, $user);
?>
<div class="secondary">
    <h3 class="more-from more-from-player">
        More <span class="meta">from</span>
        <a href="<?php echo $this->baseUrl . "shots/popular"; ?>">Popular</a>
    </h3>
    <ol class="prevnext group">
        <?php foreach($popularStatuses as $status): 
            $photo = $status->photo; ?>
        <li class="next" style="margin: 7px;">
            <a style="height: 63px;"  href="<?php echo $this->baseUrl . "shots/" . $photo->alias; ?>" title="<?php echo $photo->title; ?>">
                <strong>Older</strong>
                <img alt="<?php echo $photo->title; ?>" src="<?php echo $this->baseUrl . $photo->url; ?>" width="93">
            </a>  
        </li>
        <?php endforeach; ?>
    </ol>
    <h3 class="more-from more-from-player">
        More <span class="meta">from</span>
        <a href="<?php echo $this->baseUrl . "shots/everyone"; ?>">Everyone</a>
    </h3>
    <ol class="prevnext group">
        <?php foreach($everyoneStatuses as $status): 
            $photo = $status->photo; ?>
        <li class="next" style="margin: 7px;">
            <a style="height: 63px;"  href="<?php echo $this->baseUrl . "shots/" . $photo->alias; ?>" title="<?php echo $photo->title; ?>">
                <strong>Older</strong>
                <img alt="<?php echo $photo->title; ?>" src="<?php echo $this->baseUrl . $photo->url; ?>" width="93">
            </a>  
        </li>
        <?php endforeach; ?>
    </ol>
    <h3 class="more-from more-from-player">
        More <span class="meta">from</span>
        <a href="<?php echo $this->baseUrl . "shots/debuts"; ?>">Debuts</a>
    </h3>
    <ol class="prevnext group">
        <?php foreach($debutsStatuses as $status): 
            $photo = $status->photo; ?>
        <li class="next" style="margin: 7px;">
            <a style="height: 63px;"  href="<?php echo $this->baseUrl . "shots/" . $photo->alias; ?>" title="<?php echo $photo->title; ?>">
                <strong>Older</strong>
                <img alt="<?php echo $photo->title; ?>" src="<?php echo $this->baseUrl . $photo->url; ?>" width="93">
            </a>  
        </li>
        <?php endforeach; ?>
    </ol>
    <h3 class="more-from more-from-player">More <span class="meta">by</span> <a href="<?php echo $this->baseUrl . $user->username; ?>"><?php echo $user->name; ?></a></h3>
    <ol class="prevnext group">
        <?php foreach($userStatuses as $status): 
            $photo = $status->photo; ?>
        <li class="next" style="margin: 7px;">
            <a style="height: 63px;"  href="<?php echo $this->baseUrl . "shots/" . $photo->alias; ?>" title="<?php echo $photo->title; ?>">
                <strong>Older</strong>
                <img alt="<?php echo $photo->title; ?>" src="<?php echo $this->baseUrl . $photo->url; ?>" width="93">
            </a>  
        </li>
        <?php endforeach; ?>
    </ol>
</div>
